<template>
  <div class="header">
    <img src="@/assets/images/left.png" alt="" @click="goBack" />
    <span><slot></slot></span>
    <img src="@/assets/images/home.png" alt="" />
  </div>
</template>

<script>
export default {
  name: "Header",
  methods: {
    goBack() {
      this.$router.back();
    },
  },
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 1.1733rem;
  background-color: #b0352f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2667rem;

  img {
    width: 0.6667rem;
  }

  span {
    color: #fff;
    font-size: 0.4267rem;
  }
}
</style>